package com.chuanyun.wechatcheckin.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 氚云配置类
 */
@Data
@Component
@ConfigurationProperties(prefix = "h3yun")
public class H3yunConfig {
    
    /**
     * 引擎编码
     */
    private String engineCode;
    
    /**
     * 引擎密钥
     */
    private String engineSecret;
    
    /**
     * API配置
     */
    private Api api = new Api();
    
    /**
     * 用户表配置
     */
    private UserTable userTable = new UserTable();
    
    @Data
    public static class Api {
        /**
         * API基础URL
         */
        private String baseUrl;
        
        /**
         * 调用API的URL
         */
        private String invokeUrl;
    }
    
    @Data
    public static class UserTable {
        /**
         * 用户表的schemaCode
         */
        private String schemaCode;
    }
}